package stringbuilder01;

/*
  链式编程
 */
public class StringBuilderDemo07 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
      /*  sb.append(7);
        sb.append("def");*/
        StringBuilder sb2 = sb.append(7).append("def").append(3.14);//链式编程

        System.out.println(sb);
        System.out.println(sb2);
    }
}

